package org.example.cassell_client.config;
import org.example.cassell_client.service.fallback.BulletinClientFallbackFactory;
import org.example.cassell_client.service.fallback.DeptClientFallbackFactory;
import org.example.cassell_client.service.fallback.TipClientFallbackFactory;
import org.example.cassell_client.service.fallback.UserClientFallbackFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class DefaultFeignConfig {
    @Bean
    public TipClientFallbackFactory tipClientFallbackFactory() {
        return new TipClientFallbackFactory();
    }
    @Bean
    public UserClientFallbackFactory userClientFallbackFactory() {
        return new UserClientFallbackFactory();
    }
    @Bean
    public BulletinClientFallbackFactory bulletinClientFallbackFactory() {
        return new BulletinClientFallbackFactory();
    }

    @Bean
    public DeptClientFallbackFactory deptClientFallbackFactory() {
        return new DeptClientFallbackFactory();
    }
}
